package com.qiguliuxing.dts.common.type;

import lombok.RequiredArgsConstructor;

/**
 * 商户账务记录枚举类型
 * 
 * @author qiguliuxing
 * @QQ 623659388
 * @since 1.0.0
 */
@RequiredArgsConstructor
public enum MerchantTraceTypeEnum {

	// 系统结算
	SYS_SETTLEMENT(0, "系统结算"),

	// 商户申请
	MERCHANT_APPLY(1, "商户申请"),

	// 团购海报
	CHECK_REVERSAL(2, "核算冲正");

	public final int type;
	public final String desc;

	public static MerchantTraceTypeEnum getInstance(Integer type2) {
		if (type2 != null) {
			for (MerchantTraceTypeEnum tmp : MerchantTraceTypeEnum.values()) {
				if (tmp.type == type2.intValue()) {
					return tmp;
				}
			}
		}
		return null;
	}

}
